deltas: Add a compression size heuristic for endianness detection
authorColin Walters <walters@verbum.org>
Thu, 25 Feb 2016 16:07:30 +0000 (11:07 -0500)
committerColin Walters <walters@verbum.org>
Fri, 26 Feb 2016 13:19:01 +0000 (08:19 -0500)
commit5345573470f6c1929f00ff06572cb28b073e1d2f
tree50553f0e3a0644636545a43d8c16ae95a3fcc91b
parent7fdf07271031cd4a88af9280b41ece5dc7c1d580
deltas: Add a compression size heuristic for endianness detection

I see when analyzing a delta here that due to byteswapping a negative
compression ratio of 540%, 66%, and 28%.  Let's arbitrarily pick 20%
as a threshold for detecting byetswapping.
src/libostree/ostree-repo-static-delta-core.c